﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LinkCard.Utils;

namespace LinkCard.AdminCP.UploadExcel
{
    public partial class file_active : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Int64 nFileUploadID = ConvertUtility.ToInt64(Request.QueryString["ID"]);

            if (nFileUploadID > 0)
            {
                string sSQL = "update fileupload set status = (Select [Status] = CASE [Status] WHEN 0 THEN 1 ELSE 0 END from fileupload where fileuploadID =" + nFileUploadID + ") where FileUploadID=" + nFileUploadID;
                DataHelper.ExecuteNonQuery(sSQL, true);
                Response.Redirect("/UploadExcel/file_list.aspx");
            }
        }
    }
}